﻿CREATE PROCEDURE [dbo].[TempArticleSales_UpdateStoreIds]
AS
	Update TempArticleSales
	Set StoreId = st.Id
	From TempArticleSales t
	Inner Join Stores st on t.StoreCode = st.Code